package com.colin.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author :Colin
 * @version 创建时间: 2021/8/12 13:47
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
public class SysResult {
    private Integer status;
    private String msg;
    private Object data;
    public  static SysResult fail(){
        return new SysResult(201,"fail",null);
    }
    public static SysResult success(){
        return new SysResult(200,"success",null);
    }
    public static SysResult success(Object o){
        return new SysResult(200,"success",o);
    }
}
